import request from '../utils/request.js';

export const getEvents = () => {
    return request({
        url: '/event/getEvents',
        type: 'get',
    });
}
export const getSites = () => {
    return request({
        url: '/site/getSites',
        type: 'get',
    });
}
export const getSiteOne = (parms) => {
    return request({
        url: '/site/getSiteOne',
        type: 'get',
        data: parms,
        
    });
}
export const getPersonageOne = (parms) => {
    return request({
        url: '/personage/getPersonageOne',
        type: 'get',
        data: parms,
        
    });
}
export const getPersonages = () => {
    return request({
        url: '/personage/getPersonages',
        type: 'get',
    });
}
export const getComments = (parms) => {
    return request({
        url: '/comment/getComments',
        type: 'get',
        data: parms,
        
    });
}
export const getForums = () => {
    return request({
        url: '/forum/getForums',
        type: 'get',
    });
}
export const selectForumByWord = (params) => {
    return request({
        url: '/forum/selectForumByWord',
        type: 'get',
        data: params
    });
}
export const addForum = (data) => {
    return request({
        url: '/forum/addForum',
        type: 'post',
        data: data
    });
}
export const addComment = (data) => {
    return request({
        url: '/comment/addComment',
        type: 'post',
        data: data
    });
}
export const getMyAANdF = (params) => {
    return request({
        url: '/attention/getMyAANdF',
        type: 'get',
        data: params
    });
}
export const getAttentionSites = (params) => {
    return request({
        url: '/site/getAttentionSites',
        type: 'get',
        data: params
    });
}
export const getAttentionPersonages = (params) => {
    return request({
        url: '/personage/getAttentionPersonages',
        type: 'get',
        data: params
    });
}
export const getAttentionTravels = (params) => {
    return request({
        url: '/travel/getAttentionTravels',
        type: 'get',
        data: params
    });
}
export const getTravels = () => {
    return request({
        url: '/travel/getTravels',
        type: 'get',
    });
}
export const getTravelOne = (params) => {
    return request({
        url: '/travel/getTravelOne',
        type: 'get',
        data: params
    });
}
export const getUserAttention = (params) => {
    return request({
        url: '/attention/getUserAttention',
        type: 'get',
        data: params
    });
}
export const getUserFollow = (params) => {
    return request({
        url: '/attention/getUserFollow',
        type: 'get',
        data: params
    });
}
export const addAttention = (data) => {
    return request({
        url: '/attention/addAttention',
        type: 'post',
        data: data
    });
}
export const deleteAttention = (params) => {
    return request({
        url: '/attention/deleteAttention',
        type: 'get',
        data: params
    });
}
export const selectMyForums = (params) => {
    return request({
        url: '/forum/selectMyForums',
        type: 'get',
        data: params
    });
}
export const getForumById = (params) => {
    return request({
        url: '/forum//getForumById',
        type: 'get',
        data: params
    });
}
export const getMyComments = (params) => {
    return request({
        url: '/comment/getMyComments',
        type: 'get',
        data: params
    });
}
export const getVideos = () => {
    return request({
        url: '/media/getVideos',
        type: 'get',
    });
}
export const selectTravelByWord = (params) => {
    return request({
        url: '/travel/selectTravelByWord',
        type: 'get',
        data: params
    });
}
export const getForumComments = (params) => {
    return request({
        url: '/comment/getForumComments',
        type: 'get',
        data: params
    });
}
export const deleteComments = (params) => {
    return request({
        url: '/comment/deleteComments',
        type: 'post',
        data: params
    });
}
export const listMyAttention = (params) => {
    return request({
        url: '/attention/listMyAttention',
        type: 'get',
        data: params
    });
}
export const listAttentionMe = (params) => {
    return request({
        url: '/attention/listAttentionMe',
        type: 'get',
        data: params
    });
}
export const tolike = (params) => {
    return request({
        url: '/like',
        type: 'get',
        data: params
    });
}
export const getlikestatus = (params) => {
    return request({
        url: '/getlikestatus',
        type: 'get',
        data: params
    });
}
export const getlikenum = (params) => {
    return request({
        url: '/getlikenum',
        type: 'get',
        data: params
    });
}
